import axios from "@/axios";

axios.interceptors.request.use(config => {
    config.headers.test += '1'
    return config;
})
axios.interceptors.request.use(config => {
    config.headers.test += '2'
    return config;
})
axios.interceptors.request.use(config => {
    config.headers.test += '3'
    return config;
})
axios.interceptors.response.use(config => {
    config.headers.test += '1'
    return config;
})
let interceptor = axios.interceptors.response.use(config => {
    config.headers.test += '2'
    return config;
})
axios.interceptors.response.use(config => {
    config.headers.test += '3'
    return config;
})

axios.interceptors.response.eject(interceptor)

axios({
    url: 'interceptor/get', method: 'get', headers: {
        test: '27'
    }
}).then(res => {
    console.log(res.data)
})